package com.cloud.feign.service;

import com.cloud.feign.service.impl.FallbackService;
import com.cloud.feign.service.impl.HystrixFallBackService;
import com.yingxue.lesson.entity.SysRole;
import com.yingxue.lesson.utils.DataResult;
import com.yingxue.lesson.vo.req.RolePageReqVo;
import com.yingxue.lesson.vo.resp.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lai
 * @version 1.0
 * @date 2021/5/30 12:58
 * @description
 */
@Component
@FeignClient(value = "cloud-role")
public interface RoleFeignService {


    @PostMapping("/api/roles")
    public DataResult<PageVO<SysRole>> pageInfo(@RequestBody RolePageReqVo vo);

}
